home *** CD-ROM | disk | FTP | other *** search
/ Champak 66 / Vol 66.iso / games / angel_fr.swf / scripts / frame_4 / DoAction_4.as < prev    next >
Text File  |  2013-04-24  |  3KB  |  139 lines

  1. pause_spk.play_txt._visible = false;
  2. pause_spk.off_txt._visible = false;
  3. pause_screen._visible = false;
  4. var pause_flag = false;
  5. pause_spk.play_txt.onRollOver = function()
  6. {
  7.    if(on_game_flag)
  8.    {
  9.       this.gotoAndStop(2);
  10.    }
  11. };
  12. pause_spk.play_txt.onRollOut = function()
  13. {
  14.    if(on_game_flag)
  15.    {
  16.       this.gotoAndStop(1);
  17.    }
  18. };
  19. pause_spk.play_txt.onRelease = pause_spk.play_txt.onReleaseOutside = function()
  20. {
  21.    if(on_game_flag)
  22.    {
  23.       all_pause_time += getTimer() - now_pause_time;
  24.       this._visible = false;
  25.       pause_flag = false;
  26.       pause_screen._visible = false;
  27.       sound_play(0,99999);
  28.       if(blood_count > 9)
  29.       {
  30.          sound_play(11,9999);
  31.       }
  32.       pause_spk.pause_txt._visible = true;
  33.       if(pause_spk.pause_bt._currentframe == 1)
  34.       {
  35.          pause_spk.pause_bt.gotoAndStop(2);
  36.       }
  37.       else
  38.       {
  39.          pause_spk.pause_bt.gotoAndStop(1);
  40.       }
  41.       i_txt.text = "";
  42.       var i = 0;
  43.       while(i < 9)
  44.       {
  45.          if(eval("q_boy_" + i).boy._currentframe != 1)
  46.          {
  47.             eval("q_boy_" + i).boy.play();
  48.          }
  49.          i++;
  50.       }
  51.    }
  52. };
  53. pause_spk.pause_txt.onRollOver = function()
  54. {
  55.    if(on_game_flag)
  56.    {
  57.       this.gotoAndStop(2);
  58.    }
  59. };
  60. pause_spk.pause_txt.onRollOut = function()
  61. {
  62.    if(on_game_flag)
  63.    {
  64.       this.gotoAndStop(1);
  65.    }
  66. };
  67. pause_spk.pause_txt.onRelease = pause_spk.pause_txt.onReleaseOutside = function()
  68. {
  69.    if(on_game_flag)
  70.    {
  71.       now_pause_time = getTimer();
  72.       stopAllSounds();
  73.       pause_flag = true;
  74.       pause_screen._visible = true;
  75.       this._visible = false;
  76.       pause_spk.play_txt._visible = true;
  77.       if(pause_spk.pause_bt._currentframe == 1)
  78.       {
  79.          pause_spk.pause_bt.gotoAndStop(2);
  80.       }
  81.       else
  82.       {
  83.          pause_spk.pause_bt.gotoAndStop(1);
  84.       }
  85.       var i = 0;
  86.       while(i < 9)
  87.       {
  88.          eval("q_boy_" + i).boy.stop();
  89.          i++;
  90.       }
  91.    }
  92. };
  93. pause_spk.on_txt.onRollOver = function()
  94. {
  95.    this.gotoAndStop(2);
  96. };
  97. pause_spk.on_txt.onRollOut = function()
  98. {
  99.    this.gotoAndStop(1);
  100. };
  101. pause_spk.on_txt.onRelease = pause_spk.on_txt.onReleaseOutside = function()
  102. {
  103.    sound_flag = false;
  104.    stopAllSounds();
  105.    this._visible = false;
  106.    pause_spk.off_txt._visible = true;
  107.    if(pause_spk.spk_bt._currentframe == 1)
  108.    {
  109.       pause_spk.spk_bt.gotoAndStop(2);
  110.    }
  111.    else
  112.    {
  113.       pause_spk.spk_bt.gotoAndStop(1);
  114.    }
  115. };
  116. pause_spk.off_txt.onRollOver = function()
  117. {
  118.    this.gotoAndStop(2);
  119. };
  120. pause_spk.off_txt.onRollOut = function()
  121. {
  122.    this.gotoAndStop(1);
  123. };
  124. pause_spk.off_txt.onRelease = pause_spk.off_txt.onReleaseOutside = function()
  125. {
  126.    sound_flag = true;
  127.    sound_play(0,9999);
  128.    this._visible = false;
  129.    pause_spk.on_txt._visible = true;
  130.    if(pause_spk.spk_bt._currentframe == 1)
  131.    {
  132.       pause_spk.spk_bt.gotoAndStop(2);
  133.    }
  134.    else
  135.    {
  136.       pause_spk.spk_bt.gotoAndStop(1);
  137.    }
  138. };
  139.